package cn.hackcloud.concurrency.eda.chat;

import cn.hackcloud.concurrency.eda.AsyncChannel;
import cn.hackcloud.concurrency.eda.Event;

public class UserChatEventChannel extends AsyncChannel {
    @Override
    protected void handle(Event message) {
        UserChatEvent event = (UserChatEvent) message;
        System.out.println("The User[" + event.getUser().getName() + "] + say：" + event.getMessage());
    }
}
